import request from '@/utils/request';

/**获取通知配置列表
 * 
 * @param params 
 * @returns 
 */
export function getConfigMsgListAPI(params:any) {
    return request({ 
        url: `/alarm/notice/list`, 
        method: 'get', 
        params: params 
    });
}


/**获取告警通知配置信息
 * 
 * @param id 
 * @returns 
 */
export function getConfigMsgInfoAPI(anId:string) {
    return request({ 
        url: `/alarm/notice/${anId}`, 
        method: 'get', 
    });
}

/**添加通知配置
 * 
 * @param data 
 * @returns 
 */
export function addConfigMsgAPI(data:any) {
    return request({ 
        url: `/alarm/notice`, 
        method: 'post', 
        data: data 
    });
}

/**修改通知配置
 * 
 * @param data 
 * @returns 
 */
export function updataConfigMsgAPI(data:any) {
    return request({ 
        url: `/alarm/notice`, 
        method: 'put', 
        data: data 
    });
}

/**删除通知配置
 * 
 * @param anIds 
 * @returns 
 */
export function deleteConfigMsgAPI(anIds:string[]) {
    return request({ 
        url: `/alarm/notice/${anIds}`, 
        method: 'delete', 
    });
}


/**刷新报警信息
 * 
 * @returns 
 */
export function updataConfigMsgListAPI() {
    return request({ 
        url: `/alarm/notice/flushAlarmNotice`, 
        method: 'get', 
    });
}




